package com.owc.domain.dto.admin;

import com.owc.common.converter.OutputConverter;
import com.owc.domain.entity.User;
import lombok.Data;

/**
 * @Author Jackies
 * @Date 2019/12/9 22:47
 * @Description TODO://
 **/
@Data
public class UserBeanDTO implements OutputConverter<UserBeanDTO, User> {
    private Long userId;
    private String phone;
    private String userName;
    private String registerTime;

    @Override
    public void customConverter(UserBeanDTO userBeanDTO, User user) {
        userBeanDTO.setUserName(user.getUsername());
        userBeanDTO.setUserId(user.getId());
    }
}
